<div class="pageContent" style="width: 566px;">
  <form method="post" action="<?php echo Yii::app()->request->requestUri?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone)">
    <div layouth="58" class="pageFormContent" style="height: 203px; overflow: auto;">
      <input type="hidden" name="action" value="edit_user"/>
      <input type="hidden" name="id" value="<?php echo $user->id?>"/>
      <div class="unit">
        <label>用户名：</label>
        <input type="text" name="username" class="textInput" value="<?php echo $user->username?>" />
      </div>
      <div class="unit">
        <label>权限：</label>
        <select name="role">
        <?php foreach (Roles::$roles as $k=>$v):?>
        <option value="<?php echo $k?>"<?php if($k == $user->role):?> selected="selected"<?php endif;?>><?php echo $v?></option>
        <?php endforeach;?>
        </select>
      </div>
      <div class="unit">
        <label>密码：</label>
        <input type="text" name="password" size="25" class="textInput" value="" />
      </div>
    <div class="formBar">
      <ul>
        <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
        <li><div class="button"><div class="buttonContent"><button type="reset">清空重输</button></div></div></li>
      </ul>
    </div>
  </form>
</div>